this._removeRecorder(sender);
invocation.return_value(GLib.Variant.new('(bs)', returnValue));
}
-
});
} catch (error) {
log(`Failed to start recorder: ${error.message}`);
this._removeRecorder(sender);
invocation.return_value(GLib.Variant.new('(bs)', returnValue));
}
-
});
} catch (error) {
log(`Failed to start recorder: ${error.message}`);
this._history = global.settings.get_strv(this._key);
global.settings.connect(`changed::${this._key}`,
this._historyChanged.bind(this));
-
} else {
this._history = [];
}
addItem(input) {
if (this._history.length == 0 ||
this._history[this._history.length - 1] != input) {
-
this._history = this._history.filter(entry => entry != input);
this._history.push(input);
this._save();
for (let app of apps) {
let windows = app.get_windows();
for (let window of windows) {
-
if (!this._isEligibleWindow(window))
continue;
// Returns true if there is reason to think that eval(str)
// will modify the global scope
function isUnsafeExpression(str) {
-
// Check for any sort of assignment
// The strategy used is dumb: remove any quotes
// or regexs and comparison operators and see if there is an '=' character.
return true;
}
-
};
Signals.addSignalMethods(SmartcardManager.prototype);
} else {
this.addItem(box, null);
}
-
}
this.connect('destroy', this._onDestroy.bind(this));
global.settings.connect('changed::app-picker-layout',
this._loadPages.bind(this));
-
}
_loadPages() {
e.message.includes('Failed to activate device: Incorrect passphrase') ||
// cryptsetup returns EINVAL in many cases, including wrong TCRYPT password/parameters
e.message.includes('Failed to load device\'s parameters: Invalid argument')) {
-
this._reaskPassword(volume);
} else {
if (e.message.includes('Compiled against a version of libcryptsetup that does not support the VeraCrypt PIM setting')) {
/* Yay, all done */
if (gainedAuthorization) {
this._emitDone(false);
-
} else {
/* Unless we are showing an existing error message from the PAM
* module (the PAM module could be reporting the authentication
return GLib.SOURCE_REMOVE;
});
}
-
}
set title(title) {
: _("Slow Keys Turned Off");
description = _('You just held down the Shift key for 8 seconds. This is the shortcut ' +
'for the Slow Keys feature, which affects the way your keyboard works.');
-
- } else if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) {
+ } else if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) {
key = KEY_STICKY_KEYS_ENABLED;
enabled = (newFlags & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) > 0;
title = enabled
scrollToBottom(index) {
let tabData = this._tabs[index];
tabData._scrollToBottom = true;
-
}
_onAdjustValueChanged(tabData) {
var Crosshairs = GObject.registerClass(
class Crosshairs extends Clutter.Actor {
_init() {
-
// Set the group containing the crosshairs to three times the desktop
// size in case the crosshairs need to appear to be infinite in
// length (i.e., extend beyond the edges of the view they appear in).
if (child.visible)
child.allocate(box);
}
-
}
});
// the same group.
this._groupPads.splice(this._groupPads.indexOf(device), 1);
this._updatePadChooser();
-
}
});
var InputSourceIndicatorContainer = GObject.registerClass(
class InputSourceIndicatorContainer extends St.Widget {
-
vfunc_get_preferred_width(forHeight) {
// Here, and in vfunc_get_preferred_height, we need to query
// for the height of all children, but we ignore the results
this._summaryItem.menu.addSettingsAction(_('Network Settings'),
'gnome-network-panel.desktop');
this._summaryItem.hide();
-
}
_sync() {
this.probing = this._proxy.Probing;
if (this.probing)
this.emit('probing-changed', this.probing);
-
}
_onPropertiesChanged(proxy, properties) {
this._scrollToRight(index);
else if (this._items[index].allocation.x1 - value < 0)
this._scrollToLeft(index);
-
}
_scrollToLeft(index) {
opacity: 0,
});
this.add_child(this._label);
-
}
this._updateUser();
workspace._windowAddedId = workspace.connect('window-added', this._queueCheckWorkspaces.bind(this));
workspace._windowRemovedId = workspace.connect('window-removed', this._windowRemoved.bind(this));
}
-
} else {
// Assume workspaces are only removed sequentially
// (e.g. 2,3,4 - not 2,4,7)
}
vfunc_gesture_progress(_actor) {
-
if (this.get_n_current_points() == 3) {
for (let i = 0; i < this.get_n_current_points(); i++) {
let [startX, startY] = this.get_press_coords(i);
Math.abs(y - startY) > APP_MOTION_THRESHOLD)
return false;
}
-
}
return true;
indicator = new St.Bin({ style_class: 'ws-switcher-box' });
this._list.add_actor(indicator);
-
}
let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);